<meta charset="utf-8">

<div class="box box-primary" id="pmpTasks_detail">
	<form role="form" id="editForm" >
	
		<div class="box-body">
		
			<div class="form-group">
				<label>任务名称</label>
				<input type="text" name="taskName" v-model="pmpTasks.taskName"class="form-control" id="taskName" readOnly />
			</div>


			<div class="form-group">
				<label>任务详情</label>
				<input type="text" name="taskDetail" v-model="pmpTasks.taskDetail"class="form-control" id="taskDetail" required />
			</div>

			<div class="form-group">
				<label>评估时间（分钟）</label>
				<input type="text" name="assignHours"v-model="pmpTasks.assignHours" class="form-control"id="assignHours" required />
			</div>
			
			<div class="form-group">
				<label>截止时间</label>
				<input type="datetime" name="expiryTime"v-model="pmpTasks.expiryTime" class="form-control" id="expiryTime"required />
			</div>
			
			<div class="form-group">
				<label>难度系数</label>
				<select id="difficultyScoreId" name="difficultyScoreId" v-model="pmpTasks.difficultyScoreId" class=" form-control"
						v-kselect="{url:'/pmp/service/pub/pmpALine/loadDifScoreComboboVo',vmodel:'pmpTasks.difficultyScoreId',firstEmpty:'true'}">
				</select>
			</div>
			
			<div class="form-group">
				<label> 优先级</label>
				<input type="number" min="1" name="priority" v-model="pmpTasks.priority" class="form-control" id="priority" required />
			</div>
				
			<div class="form-group">
				<label>来源于需求</label>
				<select v-model="pmpTasks.fromRequire" id="fromRequire" name="fromRequire" class="form-control" required>
					<option value="1">是</option>
					<option value="2">否</option>
				</select>
			</div>
			
			<div class="form-group">
				<label> 来源需求</label>
				<select id="requireId" name="requireId" v-model="pmpTasks.requireId" class=" form-control"
						v-kselect="{url:'/pmp/service/pub/pmpRequires/loadPmpRequiresComboboVo',vmodel:'pmpTasks.requireId',firstEmpty:'true'}">
				</select>
			</div>
			
				
			<div class="form-group">
				<label>任务负责人</label>
				<select type="text" name="chargeUserId" v-model="pmpTasks.chargeUserId" class="form-control" id="chargeUserId"
						v-kselect="{url:'/pmp/service/ma/pmpCloudMember/loadCloudMemberComboboVo',vmodel:'pmpTasks.chargeUserId',firstEmpty:'true'}">
				</select>
			</div>
			
		</div>
	</form>
</div>
<script type="text/javascript">
		var news = new Vue({
			el : '#pmpTasks_detail',
			data : {
				pmpTasks : {
					projectId : null,
					projectVersionId : null,
					taskName : null,
					taskDetail : null,
					fromRequire : null,
					requireId : null,
					chargeUserId : null,
					assignHours : null,
					difficultyScoreId : null,
					priority : null,
					expired : null,
					expiryTime : null
				},
				bus : new Vue(),
			},
			mounted : function() {
				var _this = this;
				var param = zfesLayerEditDg.getLayerParam();//任务id 
				var url = "/pmp/service/pub/pmpTasks/loadPmpTasks";
				zfesAjax.ajaxTodo(url, param, function(data) {
					_this.$data.pmpTasks = data.data.pmpTasks;
				})
			},
			methods : {
			}
		});
</script>
